<?php
    session_start();
    include_once '../connectBDD.php';
    
    $idEvent = $_GET['id_event'];
    
    if(isset($_GET['id_event'])){
        $query = "insert into event_user (id_event, login_user) values ($idEvent , '".$_SESSION['login']."')";
        $result = mysql_query($query) or die(mysql_error());
        echo "true";
    }
?>
